<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="css/index.css">
    <script src="https://unpkg.com/vue@next"></script>
</head>

<body>
    <div id="app">
        <div class="cover">
            <h1 @click="changeHeight">
                MENU
            </h1>

            <ul :class="[isShow?'active':'']">
                <li v-for="(item, index) in menulist" :key="item.id">
                    {{item.title}}
                </li>
            </ul>


        </div>

    </div>
</body>
<script>
    const App = {
        data() {
            return {
                isShow: true,
                menulist: [{
                        id: 0,
                        title: "html"
                    },
                    {
                        id: 1,
                        title: "css"
                    },
                    {
                        id: 2,
                        title: "js"
                    },
                ]
            }
        },
        methods: {
            changeHeight() {

                this.isShow = !this.isShow;
            }
        }
    }
    const app = Vue.createApp(App)
    app.mount('#app')
</script>

</html>